@font-face {
    font-family: 'vazir';
    src: url('../fonts/Vazir.ttf');
}

@font-face {
    font-family: 'kh';
    src: url('../fonts/kh.ttf');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul li {
    list-style: none;
}

body {
    font-family: vazir;
    background: linear-gradient(135deg, #f5f7fc 0%, #eef2f8 100%);
    min-height: 100vh;
}

:root {
    --primary-dark: #0f2b3d;
    --red-accent: #e94d2d;
    --primary-soft: #eef2fa;
    --gray-light: #f8fafc;
    --gray-border: #e2e8f0;
    --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 20px 25px -12px rgba(0, 0, 0, 0.08);
    --transition-smooth: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(2px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    display: block;
    border-bottom: 1px solid var(--gray-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}


/* لوگو */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1001;
}

.logo img {
    width: 85px;
}

.logo-icon {
    background: var(--red-accent);
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px -6px rgba(44, 110, 158, 0.3);
}

.logo-icon i {
    font-size: 1.6rem;
    color: white;
}

.logo-text {
    font-size: 1.45rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--red-accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.logo-badge {
    font-size: 0.7rem;
    font-weight: 500;
    background: #eef2ff;
    color: var(--red-accent);
    padding: 2px 8px;
    border-radius: 40px;
    margin-right: 6px;
}


/* بخش جستجو */

.search-wrapper {
    position: relative;
    margin-left: 0.5rem;
}

.search-icon {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #4a627a;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.search-icon:hover {
    background: var(--primary-soft);
    color: var(--red-accent);
}

.search-input-container {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    background: white;
    border-radius: 48px;
    box-shadow: var(--shadow-md);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    border: 1px solid var(--gray-border);
    white-space: nowrap;
    background: white;
    z-index: 1100;
}

.search-input-container.active {
    opacity: 1;
    visibility: visible;
    left: calc(100% + 8px);
}

.search-input-container input {
    border: none;
    padding: 0.7rem 0;
    font-family: inherit;
    font-size: 0.9rem;
    width: 200px;
    outline: none;
    background: transparent;
    color: var(--primary-dark);
}

.search-input-container input::placeholder {
    color: #9aaebf;
}

.search-input-container .closeSearch {
    background: transparent;
    border: none;
    color: var(--red-accent);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.3rem;
}


/* دکمه همبرگر */

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 30px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-dark);
    border-radius: 4px;
    transition: 0.2s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* لیست منو */

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 1.2rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: #1e2f3e;
    text-decoration: none;
    border-radius: 60px;
    transition: 0.2s all;
    white-space: nowrap;
}

.nav-link i {
    font-size: 1rem;
    color: #e94d2d;
}

.nav-link:hover {
    background: var(--primary-soft);
    color: var(--red-accent);
}

.nav-item.active .nav-link {
    background: var(--primary-soft);
    color: var(--red-accent);
    font-weight: 600;
}


/* منوی کشویی */

.dropdown-content {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #ffffff;
    min-width: 240px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 0.6rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1050;
    border: 1px solid var(--gray-border);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 1.5rem;
    color: #2d3e50;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-content a i {
    width: 24px;
}

.dropdown-content a:hover {
    background: #f1f5f9;
    color: var(--red-accent);
    padding-right: 1.8rem;
}

@media (min-width: 992px) {
    .dropdown:hover .dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .dropdown>.nav-link .fa-chevron-down {
        transition: transform 0.2s;
    }
    .dropdown:hover>.nav-link .fa-chevron-down {
        transform: rotate(180deg);
    }
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--red-accent);
    color: var(--red-accent);
    padding: 0.5rem 1.3rem;
    border-radius: 40px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-outline:hover {
    background: var(--red-accent);
    color: white;
}

.btn-outline:hover i {
    transition: 0.2s;
    color: white;
}

.responsive-section {
    display: none;
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* responsive */

@media (max-width: 991px) {
    .responsive-section {
        display: block;
    }
    .unresponsive-section {
        display: none;
    }
    .navbar {
        padding: 0px;
    }
    .nav-container {
        padding: 0.2rem 1.5rem;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 90px 1.5rem 2rem;
        transition: right 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
        z-index: 99999 !important;
        gap: 1.5rem;
        overflow-y: auto;
        border-left: 1px solid var(--gray-border);
    }
    .nav-links.active {
        padding: 10px;
        right: 0;
    }
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        align-items: stretch;
    }
    .nav-item {
        width: 100%;
    }
    .nav-link {
        justify-content: space-between;
        width: 100%;
        padding: 0.9rem 1rem;
        border-radius: 18px;
        white-space: normal;
    }
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f9fbfe;
        border-radius: 20px;
        margin-top: 8px;
        display: none;
        border: 1px solid var(--gray-border);
        width: 100%;
    }
    .dropdown.show-dropdown .dropdown-content {
        display: block;
        animation: fadeSlide 0.2s ease;
    }
    @keyframes fadeSlide {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .dropdown>.nav-link .fa-chevron-down {
        transition: transform 0.2s;
    }
    .dropdown.show-dropdown>.nav-link .fa-chevron-down {
        transform: rotate(180deg);
    }
    .btn-outline {
        display: inline-flex;
        justify-content: center;
        margin-top: 0.5rem;
        width: fit-content;
    }
    /* جستجو در موبایل */
    .search-wrapper {
        order: 2;
        margin: 0;
    }
    .search-input-container {
        position: fixed;
        top: 80px;
        left: 5%;
        right: 5%;
        width: 90%;
        transform: none;
        border-radius: 60px;
        background: white;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        z-index: 1100;
    }
    .search-input-container.active {
        left: 5%;
        right: 5%;
        opacity: 1;
        visibility: visible;
        top: 80px;
    }
    .search-input-container input {
        width: 100%;
    }
}


/* محتوای دمو */

.hero-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.card {
    background: white;
    border-radius: 28px;
    padding: 1.8rem;
    flex: 1 1 260px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--gray-border);
}

.card i {
    font-size: 2.5rem;
    color: var(--red-accent);
    margin-bottom: 1rem;
}


/* ========== فوتر شرکتی ========== */

footer {
    background: linear-gradient(135deg, #0f2b3d 0%, #1a3a4f 100%);
    color: #e2e8f0;
    margin-top: auto;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 1.5rem;
}


/* شبکه فوتر - 4 ستون */

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}


/* ستون اول: لوگو و توضیحات */

.footer-col h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-col h3 span {
    color: #dc2626;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 50px;
    height: 3px;
    background: #dc2626;
    border-radius: 3px;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-text i {
    font-size: 2rem;
    color: #dc2626;
}

.footer-desc {
    line-height: 1.7;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 1.2rem;
}


/* شبکه اجتماعی */

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #e2e8f0;
    font-size: 1.1rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-3px);
}


/* عنوان ستون‌ها */

.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: white;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 40px;
    height: 2px;
    background: #dc2626;
    border-radius: 2px;
}


/* لیست لینک‌ها */

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.7rem;
    color: #f15d5d;
}

.footer-links a:hover {
    color: #f15d5d;
    padding-right: 5px;
}


/* اطلاعات تماس */

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.contact-info li i {
    width: 30px;
    height: 30px;
    background: rgba(220, 38, 38, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #dc2626;
    font-size: 0.9rem;
}


/* خبرنامه */

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0.5rem;
}

.newsletter-form input {
    padding: 0.8rem 1rem;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: inherit;
    outline: none;
    font-size: 0.85rem;
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.newsletter-form button {
    background: #dc2626;
    border: none;
    padding: 0.8rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.newsletter-form button:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}


/* پایین فوتر - کپی رایت */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: #94a3b8;
}


/* خط زیر منو گوشی */

.responsive-menu-line {
    width: 100%;
    height: 2px;
    background-color: red;
    box-shadow: 0px 0px 4px #e94d2d;
}


/* ریسپانسیو */

@media (max-width: 768px) {
    .footer-container {
        padding: 2rem 1.5rem 1rem;
    }
    .footer-grid {
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-logo-text {
        justify-content: center;
    }
    .footer-col {
        text-align: center;
    }
    .footer-col h3::after,
    .footer-col h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    .social-links {
        justify-content: center;
    }
    .contact-info li {
        justify-content: center;
    }
    .footer-links a {
        justify-content: center;
    }
}


/* افکت براق برای لوگو */

.footer-logo-text i {
    animation: subtlePulse 2s infinite;
}

@keyframes subtlePulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}